﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PlusAssistance.Models
{
    public class ResponseModel<TModel>
    {
        public ResponseModel()
        {
            Warnings = new List<string>();
            Errors = new List<string>();
        }

        public TModel Data { get; set; }

        public List<string> Warnings { get; set; }

        public List<string> Errors { get; set; }

        public bool Success
        {
            get { return !Errors.Any(); }
        }
    }
}